import 'package:flutter/material.dart';

/**
 * 自定义appBarView
 */
class MyAppBar extends StatefulWidget implements PreferredSizeWidget {

//  标题栏高度
  final double contentHeight;
  //标题栏背景色
  Color appBarBackgroundColor;
//  标题栏左侧Widget
  Widget appBarLeftWidget;
//  标题栏右侧Widget
  Widget appBarRightWidget;
//  标题栏中间标题
  String appBarTitle;

  MyAppBar({
    Key? key,
    this.contentHeight=66,
    this.appBarBackgroundColor=Colors.lightBlue,
    required this.appBarTitle,
    required this.appBarLeftWidget,
    required this.appBarRightWidget,
  }) : super(key: key);

  @override
  _MyAppBarState createState() => _MyAppBarState();

  @override
  // TODO: implement preferredSize
  Size get preferredSize => throw UnimplementedError();
}

class _MyAppBarState extends State<MyAppBar> {
  @override
  Widget build(BuildContext context) {
    return Container();
  }
}
